import Vue from 'vue'
import VueRouter from 'vue-router'
import Myapp from '../views/myApp'
import Home from '../views/home.vue'
import Hot from '../views/hot'
import RanVideo from '../views/ranVideo'
import User from '../views/user'
import newsInfo from "../components/newsInfo"
import selectNews from "../views/selectNews";
import countDown from "../views/countDown"
import Login from "../components/Login";
import Registered from "../components/Registered";
import ForgetPassword from "../components/ForgetPassword";
import Login1 from "../components/Login1";
import CheckInformation from "../components/CheckInformation"
import ModifyingInformation from "../components/ModifyingInformation"
import Collection from "../components/Collection";
import collestNewsInfo from '../components/collectNewsInfo'
import theZodiac from "../views/theZodiac"

// import jiqi from '../views/jiqi'


Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   redirect: '/myapp/home'
  // },
  {
    path: '/',
    redirect: '/countDown'
  },
  {
    path:"/countDown",
    component:countDown
  },
  {
    path: '/myapp',
    name: 'Myapp',
    component: Myapp,
    children:[{
      path: 'home',
      component: Home,
    },
      {
      path: 'hot',
      component: Hot,
    },

      {
        path: 'ranVideo',
        component: RanVideo,
      },

      {
        path: 'user',
        component: User,
      }
    ],
  },

  {
    path:"/mv",
    component:()=>import("../components/mv")
  },


  {
    path:'/newsInfo',
    component: newsInfo
  },
  {
    path:"/collestNewsInfo",
    component: collestNewsInfo
  },

  {
    path:'/selectNews',
    component:selectNews
  },






  {
    path: '/Login',
    redirect: '/Login/Login1',
    component: Login,
    children: [
      {
        path: 'Registered',
        component: Registered,
      }, {
        path: 'Login1',
        component: Login1,
      },
      {
        path:'ForgetPassword',
        component: ForgetPassword,
      },
    ]
  },
  {
    path:"/CheckInformation",
    component: CheckInformation
  },
  {
    path:"/ModifyingInformation",
    component: ModifyingInformation
  },
  {
    path:"/Collection",
    component: Collection
  },



  // 热点详情页
  {
    path:"/HotSon",
    component:()=>import("../views/hotBigSon")
  },
    // 星座详情页
  {
    path:"/theZodiac",
    component:theZodiac,
  }





]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
